#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

char * my_strcat(char* pc, char* ps,char * P)
{
	while (*pc != '\0')
	{
		*P = *pc;
		pc++;
		P++;
	}
	while (*ps != '\0')
	{
		*P = *ps;
		ps++;
		P++;
	}
	*P = '\0';
}

int main()
{
	char str1[40] = { 0 };
	char str2[40] = { 0 };
	char str[80] = { 0 };
	gets(str1);
	gets(str2);
	my_strcat(str1, str2,str);
	int i = 0;
	printf("%s", str);
	return 0;
}
